﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Master/AdminMaster.Master"
    AutoEventWireup="true" CodeBehind="BidInvalidProductList.aspx.cs" Inherits="HZ.DrugTrade.Web.Admin.BidProdManage.BidInvalidProductList" %>

<%@ Register src="../../Controls/ucIsBasicRemedy.ascx" tagname="ucIsBasicRemedy" tagprefix="uc1" %>

    <%@ Register src="../../Controls/ucSource.ascx" tagname="ucSource" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="tabnav">
        <ul>
            <li><a href="BidProductList.aspx">有效采购产品</a></li>
            <li class="active"><a href="javascript:void(0);">无效采购产品</a></li>
        </ul>
    </div>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">
                                产品名称：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtGoodsName" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                规格型号：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtOutLook" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                材质：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtMaterial" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <asp:Literal ID="ltlAdvance" runat="server" Text="&lt;tbody id='advance' style='display:none'&gt"></asp:Literal>
                        <tr>
                            <%--<td align="right">
                                拼音码：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtPinyinCode" runat="server"></asp:TextBox>
                            </td>--%>
                            <td align="right">
                                生产企业：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtProduceCompany_SC" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                投标企业：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtCompany_TB" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                单位：                             </td>
                            <td align="left">
                                <asp:TextBox ID="txtUnit" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                &nbsp;项目：</td>
                            <td align="left">
                                <asp:DropDownList ID="ddlProject" runat="server">
                                </asp:DropDownList>
                            </td>
                            <td align="right">
                                添加时间：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtAddTimeFrom" runat="server" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
                                    Width="62px"></asp:TextBox>
                                -<asp:TextBox ID="txtAddTimeTo" runat="server" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
                                    Width="62px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <%--<td align="right">
                                产品类别：                             </td>
                            <td align="left">
                                <asp:TextBox ID="txtProductType" runat="server"></asp:TextBox>
                            </td>--%>
                            
                             <%--<uc1:ucsource ID="ucSource1" runat="server" />--%>
                        </tr>
                        <tr>
                             <%--<uc1:ucIsBasicRemedy ID="ucIsBasicRemedy1" runat="server" />--%>
                             <td align="left">
        
                            </td>
                            <td align="right">
                                &nbsp;</td>
                            <td align="left">
                                &nbsp;</td>
                            <td align="right">
                                &nbsp;</td>
                            <td align="left">
                                &nbsp;</td>
                        </tr>
                    </table>
                </td>
                <td>
                    <hz:HzButton ID="btnQuery" runat="server" Text="查询" OnClick="btnQuery_Click" CssClass="searchbtn" />
                    <hz:HzLinkButton ID="lbnSwitch" runat="server" CommandArgument="simple" Text="高级查询"
                        OnClick="lbnSwitch_Click"></hz:HzLinkButton>
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwProduceCatalog" CssClass="mainlist" runat="server" AutoGenerateColumns="False"
        EmptyDataText="暂无符合条件的数据！">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex-1) %></ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:BoundField DataField="SortName" HeaderText="产品分类"/>
            <asp:BoundField DataField="GoodsName" HeaderText="产品名称" />
            <asp:BoundField DataField="Outlookc" HeaderText="规格型号" />
            <asp:BoundField DataField="Material" HeaderText="材质" NullDisplayText="无" />
            <%--<asp:BoundField DataField="Factor" HeaderText="转换系数" />--%>
            <asp:BoundField DataField="count" HeaderText="最小计量数量" />
            <asp:BoundField DataField="Unit" HeaderText="最小计量单位" />
            <%--<asp:BoundField DataField="PackUnit" HeaderText="包装单位" />--%>
            <asp:BoundField DataField="QualityLevel" HeaderText="产品类别" />
            <asp:BoundField DataField="CompanyName_SC_tb" HeaderText="生产企业(代理)" />
            <asp:BoundField DataField="ProcurePrice" HeaderText="采购限价" DataFormatString="{0:N4}" />
            <%--<asp:BoundField DataField="CompanyName_TB" HeaderText="投标企业" Visible="False" />--%>
            
            <asp:BoundField DataField="ProjectName" HeaderText="项目" Visible="false" />
            <asp:BoundField DataField="AddTime" HeaderText="添加时间" DataFormatString="{0:yyyy-MM-dd}" Visible="false" />
             <%--<asp:TemplateField HeaderText="产品属性">
                <ItemTemplate>
                    <%# HZ.DrugTrade.Web.Function.FormatDrugSource( Eval("SortSource")) %>
                </ItemTemplate>
                <HeaderStyle Width="60px" />
            </asp:TemplateField>
            
             <asp:TemplateField HeaderText="产品类别">
                <ItemTemplate>
                   <%# HZ.DrugTrade.Web.Function.FormatDrugBasicRemedy(Eval("IsBasicRemedy"))%>
                </ItemTemplate>
                <HeaderStyle Width="60px" />
            </asp:TemplateField>--%>
            
            <asp:TemplateField HeaderText="状态">
                <ItemTemplate>
                    <asp:Image runat="server" ID="imgState" ImageUrl='<%# (bool)Eval("IsUsing")?"~/lib/images/ico_yes.gif":"~/lib/images/ico_no.gif" %>' />
                </ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <hz:HzLinkButton ID="HzButton1" runat="server" OnClientClick='<%# GetURLScript("PriceAdjustPlanAdd.aspx?procureCatalogId="+Eval("ProcureCatalogID")) %>'
                        CausesValidation="false" Text='<img src="../../lib/images/setting.gif" align="middle" alt="" >价格调整'
                        OperateType="编辑" />
                    <%--<hz:HzLinkButton ID="HzButton2" runat="server" OnClientClick='<%# GetURLScript("BidProductCompany.aspx?procureCatalogId="+Eval("ProcureCatalogID"))%>'
                        CausesValidation="false" Text='<img src="../../lib/images/setting.gif" align="middle" alt="" >配送企业'
                        OperateType="编辑" />--%>
                </ItemTemplate>
                <HeaderStyle Width="70px" />
            </asp:TemplateField>
            <asp:TemplateField>
                <HeaderTemplate>
                    <input id="chkAll" name="chkAll" type="checkbox" onclick="SelectAllCheckboxes(this,'ctl00_ContentPlaceHolder1_gvwProduceCatalog','chkAll'); " />
                </HeaderTemplate>
                <ItemTemplate>
                    <input type="checkbox" name="checkbox1" id="checkbox1" value='<%#Eval("ProcureCatalogID")%>'
                        onclick="chkChecked(this,'ctl00_ContentPlaceHolder1_gvwProduceCatalog','chkAll');" />
                </ItemTemplate>
                <HeaderStyle Width="25px" />
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
        </webdiyer:AspNetPager>
    </div>
    <div class="listip">
        <ul>
            <li>提示:<span> 选择要操作的采购产品，然后点击“撤废产品”或“恢复产品”。</span></li>
        </ul>
    </div>
    <div class="listctrl">
        <hz:HzButton ID="btnAdd" runat="server" OnClientClick="window.location='BidProductAdd.aspx';return false;"
            Text="新增产品" CssClass="btn" OperateType="新增" />&nbsp;<hz:HzButton ID="btnBatchAdd" runat="server" OnClientClick="window.location='BidProductPatchAdd.aspx';return false;"
                Text="批量导入" CssClass="btn"  OperateType="导入"/>
        <hz:HzButton ID="btnAbandon" runat="server" Text="撤废产品" OnClick="btnAbandon_Click"
            OnClientClick="if(checkSelectedItems('ctl00_ContentPlaceHolder1_gvwProduceCatalog','请至少选择一种产品')) {return confirm('确定要撤废选中产品吗？')}; return false;"
            CssClass="btn"  OperateType="撤废"/>
        <hz:HzButton ID="btnRecover" runat="server" Text="恢复产品" OnClick="btnRecover_Click"
            OnClientClick="if(checkSelectedItems('ctl00_ContentPlaceHolder1_gvwProduceCatalog','请至少选择一种产品')) {return confirm('确定要恢复选中产品吗？')}; return false"
            CssClass="btn" OperateType="撤废"/>
            <hz:HzButton  ID="btnExport" runat="server" Text="导出Excel" CssClass="btn" 
            onclick="btnExport_Click" />
            
    </div>
</asp:Content>
